import searchHttpRequest from "@/db/search"
import type * as Search from "./type"

// 获取搜索历史详情
export function getSearchHistoryInfo() {
  return searchHttpRequest.getSearchHistory<Search.SearchHistory>
}

// 新增搜索历史
export function addSearchHistory(data: Search.SearchHistory) {
  return searchHttpRequest.addSearchHistory<any>(data)
}
